//
//  GGCalendarTool.h
//  ggtool
//
//  Created by engfei on 2017/4/26.
//  Copyright © 2017年 GaiGai. All rights reserved.
//

#import "GGBaseTool.h"
#import "GGCalendarView.h"

// 时间的模型
@interface GGCalendarDay : NSObject

@property (nonatomic, assign) NSUInteger day;
@property (nonatomic, assign) NSUInteger month;
@property (nonatomic, assign) NSUInteger year;

+ (GGCalendarDay *)calendarDayWithYear:(NSUInteger)year month:(NSUInteger)month day:(NSUInteger)day;

- (BOOL)isEqualTo:(GGCalendarDay *)day;

- (NSDate *)date;

@end


@protocol GGCalendarToolDelegate <NSObject>

- (void)calendarToolMonthDidChange;

@end

@interface GGCalendarTool : GGBaseTool

@property (nonatomic, weak) id<GGCalendarToolDelegate> delegate;

- (void)reloadCalendarView:(GGCalendarView *)calendarView;
- (void)reloadCalendarView:(GGCalendarView *)calendarView withDate:(NSDate *)date;

- (void)goToPreviousMonthInCalendarView:(GGCalendarView *)view;
- (void)goToNextMonthInCalendarView:(GGCalendarView *)view;

@end
